package com.xc.stock.infrastructure.db.po;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.UpdateTimestamp;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * TradeAccPO 
 *
 * @author rplees 
 * @email rplees.i.ly@gmail.com 
 * @created 2022/08/12 
 */
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@DynamicInsert
@DynamicUpdate
@Table(
    name = "trade_acc"
)
public class TradeAccPO {
  @Id
  @GeneratedValue(
      strategy = GenerationType.IDENTITY
  )
  Integer id;

  Integer destId;
  
  String role;

  String destName;

  String destPhone;

  String type;
  
  Integer fakeFlag;
  
  String ext;

  Integer status;

  @CreationTimestamp
  @Column(
      updatable = false
  )
  Date createAt;

  @UpdateTimestamp
  Date updateAt;
}
